#!/bin/bash
#
# openQRM Enterprise developed by openQRM Enterprise GmbH.
#
# All source code and content (c) Copyright 2014, openQRM Enterprise GmbH unless specifically noted otherwise.
#
# This source code is released under the GNU General Public License version 2, unless otherwise agreed with openQRM Enterprise GmbH.
# The latest version of this license can be found here: src/doc/LICENSE.txt
#
# By using this software, you acknowledge having read this license and agree to be bound thereby.
#
#           http://openqrm-enterprise.com
#
# Copyright 2014, openQRM Enterprise GmbH <info@openqrm-enterprise.com>
#

echo "Hybrid-Cloud Installer"
rm -rf /tmp/hybrid-cloud-installer
mkdir -p /tmp/hybrid-cloud-installer
ARCHIVE=`awk '/^__ARCHIVE_BELOW__/ {print NR + 1; exit 0; }' $0`
tail -n+$ARCHIVE $0 | tar xzv -C /tmp/hybrid-cloud-installer
CURRENT=`pwd`
cd /tmp/hybrid-cloud-installer/install
bash -x ./configure-password
bash -x ./configure-puppet
bash -x ./configure-sshterm
bash -x ./configure-custom
cd $CURRENT
# rm -rf /tmp/hybrid-cloud-installer
exit 0
__ARCHIVE_BELOW__
